/**
 * Created by zhangwenlei on 2017/4/12.
 */
BCP.bill.domControl.TextArea=function(parent){
    BCP.bill.domControl.TextArea.superclass.constructor.call(this,parent);
};

COM.util.defineClass(BCP.bill.domControl.TextArea,ADF.domControl.TextArea,{

    getLabel:function () {
        return BCP.bill.domControl.TextArea.superclass.getLabel.call(this)+" BCPTextArea";
    },
    setBinding:function (binding) {
        if(binding){
            $(this.domElement).attr("data-bind","value:" + binding);
        }else{
            $(this.domElement).removeAttr("data-bind");
        }
    },
    _getDomElement:function (model) {
       var element= BCP.bill.domControl.TextArea.superclass._getDomElement.call(this,model);
       if(model.getBinding()){
           $(element).attr("data-bind","value:" + model.getBinding());
       }
       return element;
    }
});